<!DOCTYPE html>

<html>
<head>
    <title>金额设置</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <meta charset="UTF-8">
    <link rel="stylesheet" href="../../resource/weui.min.css" />
    <link rel="stylesheet" href="../../resource/example.css" />
    <script src="../../script/api.js"></script>
    <script src="../../resource/jquery-1.js"></script>
    <script type="text/javascript" src="../../resource/wap_common.js"></script>
    <script type="text/javascript" src="../../resource/common.js"></script>
    <link type="text/css" rel="stylesheet" href="../../resource/fapiao.css">
    <link rel="stylesheet" href="../../resource/jinsuistyle.css" />
</head>
<body>
    <div id="jsheader" style="z-index: 99;">
        <nav id="jsnav">
            <a id="jsleft" tapmode="" onclick="javascript:history.back(-1);">
                <span>返回</span>
            </a>
            <div id="jsmiddle">
                <strong id="jstitle">金额设置</strong>
            </div>
            <a id="jsright">
                <span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </a>
        </nav>
    </div>
    <div class="paddingtop70"></div>
    <div class="page__bd">
        <div class="weui-cells">
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <label class="weui-label">金额</label>
                </div>
                <div class="weui-cell__bd">
                    <input id="in_je" class="weui-input" type="text" placeholder="请输入转账金额"></input>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <label class="weui-label">附言</label>
                </div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" placeholder="选填（不超过10个字）"></input>
                </div>
            </div>
        </div>
        <br />
        <div class="page__bd page__bd_spacing">
            <a class="weui-btn weui-btn_default" style="background-color:#285dc4;color:#fff" onclick="setJe();">确认</a>
        </div>
    </div>
    
</body>
<script>
    function openConfirm() {
        var je = $("#in_je").val() + "元";
        $("#div_je").html(je);
        $("#div_mask").show();
        $("#div_confirm").show();
    }
    
    function setJe(){
    	$api.setStorage("je","<b style=\"font-size:18px;color:#333;\">￥" + $("#in_je").val() + "</b>");
    	window.location.href ="wyfk.html";
    }

    function closeConfirm() {
        $("#div_mask").hide();
        $("#div_confirm").hide();
    }

    function cancelOrder() {
        api.confirm({
            title: '取消支付',
            msg: '是否放弃支付？',
            buttons: ['放弃支付', '继续支付']
        }, function(ret, err) {
            if (ret.buttonIndex == 1) {
                $("#div_mask").hide();
                $("#div_confirm").hide();
            }
        });

    }
</script>

</html>
